package classfile

import (
	"math"
)

type ConstantFloatInfo struct {
	tag uint8
	val float32
}

func (self *ConstantFloatInfo) readInfo(reader *ClassReader) {
	self.tag = 4
	val := reader.readUint32()
	self.val = math.Float32frombits(val)
}

func (self *ConstantFloatInfo) Value() float32 {
	return self.val
}
